Skip to content

Cleanup LLMEndpointType#122

Draft
lpiwowar wants to merge 2 commits into
lcore-migrationfrom
lpiwowar/providers-cleanup
Draft

Cleanup LLMEndpointType#122
lpiwowar wants to merge 2 commits into
lcore-migrationfrom
lpiwowar/providers-cleanup

Conversation

@lpiwowar

@lpiwowar lpiwowar commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Clean up LLMEndpointType providers by dropping providers unsupported by OGX and lightspeed-core/lightspeed-stack:

  1. bam is no longer supported by IBM and was replaced by watsonx.ai [1].

  2. fake_providers is an artifact that persisted through the migration from openshift/lightspeed-operator. This provider is supported only by openshift/lightspeed-service and not lightspeed-core/lightspeed-stack [2].

Additionally, add unit tests for buildLlamaStackModels() and buildLlamaStackInferenceProviders() to ground the configuration.

Note: this commit aims to align the providers configuration as closely as possible with the recommended configuration in lightspeed-core/lightspeed-stack [3]. It was not tested with the actual providers. Additional testing is likely required and may lead to minor tweaks in the providers code.

Also, address lint issues discovered by the pre-commit checks (replace repeating strings with constants).

[1] openshift/lightspeed-service#2827
[2] https://github.com/openshift/lightspeed-service/blob/main/docs/ai/providers.md
[3] https://github.com/lightspeed-core/lightspeed-stack/tree/main/examples


This PR introduces a new GitHub Workflow that runs unittests by running make test and fixes 401 Unauthorized issue that one was encountering when running make test (see commit).

@openshift-ci

openshift-ci Bot commented Jun 24, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci

openshift-ci Bot commented Jun 24, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lpiwowar

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3f7b44a2-9508-4939-b8fc-c207a937cc99

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch lpiwowar/providers-cleanup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lpiwowar lpiwowar force-pushed the lpiwowar/providers-cleanup branch 2 times, most recently from 4ff11b7 to bd5158d Compare June 24, 2026 14:06
lpiwowar added 2 commits June 24, 2026 10:10
This commit introduces a new Github Workflow named "Unit Tests". This
workflow is responsible for running unit tests triggered by (make
tests).

This commit also addresses the following error that was encountered when
one ran make test locally or in a job:

---
unable to fetch hash for requested version: unable fetch metadata for
kubebuilder-tools-1.30.0-linux-amd64.tar.gz -- got status "401
Unauthorized" from GCS
---

The fixes bumps up the test dependencies (ENVTEST_VERSION release-0.18
-> release-0.22). The previous vrsion was trying to pull the the test
dependencies from GCS server that has been deprecated as part of 0.19
[1].

[1] kubernetes-sigs/controller-runtime#2915
Clean up LLMEndpointType providers by dropping providers unsupported
by OGX and lightspeed-core/lightspeed-stack:

1) BAM is no longer supported by IBM and was replaced by watsonx.ai
   [1].

2) fake_providers is an artifact that persisted through the migration
   from openshift/lightspeed-operator. This provider is supported only
   by openshift/lightspeed-service and not
   lightspeed-core/lightspeed-stack [2].

Additionally, add unit tests for buildLlamaStackModels and
buildLlamaStackInferenceProviders to ground the configuration.

Note: this commit aims to align the providers configuration as closely
as possible with the recommended configuration in
lightspeed-core/lightspeed-stack [3]. It was not tested with the actual
providers. Additional testing is likely required and may lead to minor
tweaks in the providers code.

Also, address lint issues discovered by the pre-commit checks (replace
repeating strings with constants).

[1] openshift/lightspeed-service#2827
[2] https://github.com/openshift/lightspeed-service/blob/main/docs/ai/providers.md
[3] https://github.com/lightspeed-core/lightspeed-stack/tree/main/examples
@lpiwowar lpiwowar force-pushed the lpiwowar/providers-cleanup branch from bd5158d to 1be5cd1 Compare June 24, 2026 14:17
@lpiwowar

Copy link
Copy Markdown
Contributor Author

/test all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant